Skip to content

[elasticgraph]: Fix pre-1.0 release workflow on Ruby 4.0 - #1465

Merged
bsorbo merged 1 commit into
pre-1.0from
bsorbo/fix-pre-1.0-release-ruby-4
Nov 12, 2026
Merged

bsorbo merged 1 commit into
pre-1.0from
bsorbo/fix-pre-1.0-release-ruby-4

Conversation

@bsorbo

@bsorbo bsorbo commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

After #1464, the Release workflow on pre-1.0 gets past Set up Ruby but fails at Archive Docs (failed run):

cannot load such file -- .../bundler-2.5.22/lib/gems/bundler-2.5.22/exe/bundle (LoadError)
...
[error]: Missing 'redcarpet' gem for Markdown formatting.

The workflow uses ruby-version: ruby, which now resolves to Ruby 4.0. The pre-1.0 release bundle wasn't set up for it:

  • BUNDLED WITH 2.5.22 makes setup-ruby install a Bundler that doesn't work with RubyGems 4.
  • Ruby 4.0 no longer loads rdoc from the standard library, so YARD has no Markdown provider in the minimal config/release bundle.

This backports the config/release portions of #759 (redcarpet) and #958 (irb, which pulls in rdoc, plus the Bundler 4 lockfile) from main. gem-release, rake and yard stay at their current locked versions.

Verified locally that site:build_docs succeeds with this bundle on Ruby 3.4. It hasn't been run on Ruby 4.0; the next release run will be the first test of that.

🤖 Generated with Claude Code

The release workflow uses the latest Ruby (now 4.0), which broke
`site:archive_docs` in two ways:

- Bundler 2.5.22 (from `BUNDLED WITH`) fails to load on RubyGems 4.
- `rdoc` is no longer loadable from the standard library, so YARD has
  no Markdown provider in the minimal release bundle.

This backports the `config/release` portions of #759 and #958 from
main: add `redcarpet` and `irb` (which pulls in `rdoc`) and regenerate
the lockfile with Bundler 4.0.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bsorbo
bsorbo merged commit 6b86d3d into pre-1.0 Nov 12, 2026
30 checks passed
@bsorbo
bsorbo deleted the bsorbo/fix-pre-1.0-release-ruby-4 branch November 12, 2026 23:19
bsorbo added a commit that referenced this pull request Nov 13, 2026
After #1465, the Release workflow on `pre-1.0` gets past **Archive
Docs** but fails at **Bump the ElasticGraph version to release
version**, when `bump_version` runs `bundle install`:

```
Because every version of elasticgraph-support depends on Ruby >= 3.2, < 3.5
  ...
So, because current Ruby version is = 4.0.9,
  version solving has failed.
```

The workflow uses `ruby-version: ruby`, which now resolves to Ruby 4.0.
The pre-1.0 gemspecs set `required_ruby_version = [">= 3.2", "< 3.5"]`,
so pre-1.0 can't be released on Ruby 4.0. This pins the release workflow
to `"3.4"`, matching CI, publish-site, and update-gem-version-artifacts
on `pre-1.0`.

The `config/release` bundle from #1465 still works here:
`site:build_docs` passed with it on Ruby 3.4.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants